#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n = 0, m = 0;
    while (scanf("%d", &n) != EOF)
    {
        int sum = 0, count1 = 0, count2 = 0;
        float x = 0.0;
        for (int i = 0; i < n; i++)
        {
            scanf("%d", &m);
            if (m > 0)
            {
                sum = sum + m;
                count2++;
            }
            if (m < 0)
            {
                count1++;
            }
        }
        x = (float)sum / count2;
        printf("%d %.1f", count1, x);
    }
    return 0;
}